<template></template>
<!-- 可以不传模板 🤔 -->
<script setup>
import { ref, watch } from 'vue';
const props = defineProps({
    Arg1: [Number, String],
    Arg2: [Number, String],
    Result: [Number, String],
});

const emit = defineEmits(['update:Result'])

watch(() => [props.Arg1, props.Arg2], (newValue, oldValue) => {
    // Wacth 监听多个数据的返回值时, 是按照数组下标进行传递的
    emit('update:Result', (newValue[0] || '') + ' ' + (newValue[1] || ''));
})


</script>